package com.mazsn.single;

/**
 * 线程不安全的，单例模式
 * @author mazhongshan
 *
 */
public class Singleton1 {

	private static Singleton1 instance;  
	private Singleton1 (){}  
	  
	public static Singleton1 getInstance() {  
	 if (instance == null) {  
	        instance = new Singleton1();  
	 }  
	 return instance;  
   }  
	
}
